#
# kernel makefile
#
# Copyright (C) 1994 Be Inc.  All Rights Reserved
#

SHELL		:= /bin/sh

#######
include $(BUILDHOME)/buildprefs/make.pre
#######

DRVRNAME	:= hp100
OBJS		:= $(OBJ)/$(DRVRNAME).o ../../misc/PortLogger/PortLoggerLib.o
SRCS		:= $(DRVRNAME).c 

INCLUDES		+= -I../inc

TARGET			:= $(OBJ)/$(DRVRNAME)
CFLAGS			:= $(CFLAGS) -DJOE=1
LDFLAGS			:= -G -nodefaults -export all \
					$(BUILDHOME)/src/kernel/$(OBJ_DIR)/kernel
USER_DEBUG_C_FLAGS	:= -DDEBUG

$(TARGET):	$(OBJ_DIR) $(OBJS)
		$(LD) -o $@ $(OBJS) $(LDFLAGS)
		setversion $@ $(SYSTEM_VERSION) $(APP_VERSION)

floppy:		$(TARGET)
		-bf mkdir system
		-bf mkdir system/drivers
		-bf copy dos:$(TARGET) system/drivers/$(DRVRNAME)

dump:		$(TARGET)
		-rm -f list
		pefdump -b 0x20000000 $(TARGET) > list

clean::
		-rm -f list

#######
include $(BUILDHOME)/buildprefs/make.post
#######
